import React, {Component} from 'react';

class Child extends Component {
  render() {
    return (
      <div>
        {this.props.title}
        {this.props.list.map(item=>{return <div>
          {item.name}
          {item.age}
        </div>})}
      </div>
    );
  }
}

Child.defaultProps = {
  title: '寄件信息',
  list: []
};

export default Child;
